package com.zhonghui.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;

/**
 * 生产采样
对象 mes_production_sampling
 * 
 * @author yy
 * @date 2022-05-25
 */
@ApiModel("生产采样对象")
public class MesProductionSampling extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("ID")
    private Long id;

    /** 流水号 */
    @ApiModelProperty("流水号")
    @Excel(name = "流水号")
    private String serialNumber;

    /** 作业装配id */
    @Excel(name = "作业装配id")
    @ApiModelProperty("作业装配id")
    private Long jobId;

    /** 物料id */
    @Excel(name = "物料id")
    @ApiModelProperty("物料id")
    private Long materialId;

    /** 检验标准id */
    @Excel(name = "检验标准id")
    @ApiModelProperty("检验标准id")
    private Long inspectionId;

    /** 生产数量 */
    @Excel(name = "生产数量")
    @ApiModelProperty("生产数量")
    private Double quantity;

    /** 采样数量 */
    @Excel(name = "采样数量")
    @ApiModelProperty("采样数量")
    private Double samplesNumber;

    /** 检验值 */
    @Excel(name = "检验值")
    @ApiModelProperty("检验值")
    private Double inspectionValue;

    /** 检验结果 */
    @Excel(name = "检验结果")
    @ApiModelProperty("检验结果")
    private Integer inspectionResults;

    /** 检验人id */
    @Excel(name = "检验人id")
    @ApiModelProperty("检验人id")
    private Long checkUserId;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("检验时间")
    private Date inspectorTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }
    public void setJobId(Long jobId)
    {
        this.jobId = jobId;
    }

    public Long getJobId()
    {
        return jobId;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setInspectionId(Long inspectionId)
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId()
    {
        return inspectionId;
    }
    public void setQuantity(Double quantity)
    {
        this.quantity = quantity;
    }

    public Double getQuantity()
    {
        return quantity;
    }
    public void setSamplesNumber(Double samplesNumber)
    {
        this.samplesNumber = samplesNumber;
    }

    public Double getSamplesNumber()
    {
        return samplesNumber;
    }
    public void setInspectionValue(Double inspectionValue)
    {
        this.inspectionValue = inspectionValue;
    }

    public Double getInspectionValue()
    {
        return inspectionValue;
    }
    public void setInspectionResults(Integer inspectionResults)
    {
        this.inspectionResults = inspectionResults;
    }

    public Integer getInspectionResults()
    {
        return inspectionResults;
    }
    public void setCheckUserId(Long checkUserId)
    {
        this.checkUserId = checkUserId;
    }

    public Long getCheckUserId()
    {
        return checkUserId;
    }
    public void setInspectorTime(Date inspectorTime)
    {
        this.inspectorTime = inspectorTime;
    }

    public Date getInspectorTime()
    {
        return inspectorTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("serialNumber", getSerialNumber())
                .append("jobId", getJobId())
                .append("materialId", getMaterialId())
                .append("inspectionId", getInspectionId())
                .append("quantity", getQuantity())
                .append("samplesNumber", getSamplesNumber())
                .append("inspectionValue", getInspectionValue())
                .append("inspectionResults", getInspectionResults())
                .append("checkUserId", getCheckUserId())
                .append("inspectorTime", getInspectorTime())
                .append("remark", getRemark())
                .toString();
    }
}
